package com.yp.infrastructure.mvc.exception;

import com.yp.infrastructure.common.exception.IErrorMessage;
import lombok.Getter;


@Getter
public enum EnumErrorMessage implements IErrorMessage {


    SUCCESS(0, "mvc.success", ""),
    SessionNotFound (20, "session.not.found", ""),
    SessionExpired (21, "session.expired", ""),
    UNSUPPORTED_RESP_TYPE(22, "mvc.unsupported.response", ""),
    ;
    private final int code;
    private final String i18n;
    private final String msg;

    EnumErrorMessage(int code, String i18n, String msg) {
        this.code = code;
        this.i18n = i18n;
        this.msg = msg;
    }

}
